<?php
/* @var $this ProposalController */
/* @var $model Proposal */
/* @var $form CActiveForm */
?>

<div class="wide form">

    <?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm', array(
	'action'=>Yii::app()->createUrl($this->route),
	'method'=>'get',
)); ?>

                    <?php echo $form->textFieldControlGroup($model,'name',array('span'=>5,'maxlength'=>128,'placeholder' => Yii::t('profession_messages','profession.name'), 'label' => false)); ?>
  
                    <?php echo $form->dropDownListControlGroup($model, 'proposalType',array(null=>Yii::t('default','search.all'),1=>Yii::t('proposal_messages','proposalType.1'),2=>Yii::t('proposal_messages','proposalType.2'),3=>Yii::t('proposal_messages','proposalType.3'),4=>Yii::t('proposal_messages','proposalType.4')), array('label' => false)); ?>    
     
 					<?php echo $form->textFieldControlGroup($model,'url',array('span'=>5,'maxlength'=>128,'placeholder' => Yii::t('proposal_messages','proposal.bug.url'), 'label' => false)); ?>

                    <div class="row">
						 <?php
			                echo $form->dropDownList($model,'stateid', CHtml::listData(State::model()->findAll(), 'id', 'nameLocalized'), array(
			                    'prompt' => Yii::t('profession_messages','search.all.states'),
			                   ));
			
			                ?>
					</div>
					
                   <?php echo $form->textFieldControlGroup($model,'email',array('span'=>5,'maxlength'=>128,'placeholder' => Yii::t('user_messages','E-mail'), 'label' => false)); ?>
	

       <div class="row buttons">
        <?php echo TbHtml::submitButton(Yii::t('default','search.label'),  array('color' => TbHtml::BUTTON_COLOR_PRIMARY,));?>
    </div>

    <?php $this->endWidget(); ?>

</div><!-- search-form -->